<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>202-正则-原子.html</title>
</head>
<body>
	
</body>
<script>
	var str = "$9900 USD U S D";
	var reg = /\$/;
	var reg1 = /\t/;
	var reg2 = /USD/;
	console.log(str);
	// console.log(str.replace(reg,"¥"));
	// console.log(str.replace(reg1,"*"));
	console.log(str.replace(reg2,"RMB"));
</script>
</html>